package com.xianyun.site.support.executor.strategy;

import com.alibaba.cola.dto.Response;
import com.xianyun.site.support.api.ReceiveStrategy;
import com.xianyun.site.support.dto.ReceiveCmd;
import com.xianyun.site.support.executor.strategy.commond.AnalysisStrategyExo;
import com.xianyun.site.support.executor.strategy.commond.OperateCodeAnalysisExo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 处理策略合集
 * @author mac_zyj
 */
@Service
public class ReceiveStrategyImpl implements ReceiveStrategy {

    @Autowired
    private AnalysisStrategyExo analysisStrategyExo;

    @Autowired
    private OperateCodeAnalysisExo operateCodeAnalysisExo;

    @Override
    public Response analysisStrategy(ReceiveCmd receiveCmd) {
        return analysisStrategyExo.execute(receiveCmd);
    }

    @Override
    public Response operateCodeAnalysis(ReceiveCmd receiveCmd) {
        return operateCodeAnalysisExo.execute(receiveCmd);
    }

    @Override
    public Response feasibilityAnalysis(ReceiveCmd receiveCmd) {
        return null;
    }
}

